package com.example.black.myapplication.myrevealview;

import android.graphics.Canvas;
import android.graphics.ColorFilter;
import android.graphics.PixelFormat;
import android.graphics.drawable.Drawable;
import android.support.annotation.NonNull;

import com.example.black.myapplication.DemoApplication;
import com.example.black.myapplication.R;

/**
 * @author 28476 wanghao <a href="hao.wang@1hai.cn">Contact me.</a>
 * @version 1.0
 * @since 2019/04/01 11:15
 * desc :
 */
public class ViolationListArrowDrawable extends Drawable {
    @Override
    public void draw(@NonNull Canvas canvas) {
        canvas.drawColor(DemoApplication.getDemoApplication().getResources().getColor(R.color.app_green));
    }

    @Override
    public void setAlpha(int alpha) {

    }

    @Override
    public void setColorFilter( ColorFilter colorFilter) {

    }

    @Override
    public int getIntrinsicWidth() {
        return 13;
    }

    @Override
    public int getIntrinsicHeight() {
        return 21;
    }

    @Override
    public int getOpacity() {
        return PixelFormat.UNKNOWN;
    }
}
